package com.yaj.myfactorysupport;

import com.yaj.myfactorysupport.entity.TmPcbWorkflow;
import com.yaj.myfactorysupport.mapper.TmPcbWorkflowMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @ClassName InsertData
 * @Description 插入测试数据
 * @date 2021/5/17 10:32
 * @Version 1.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class InsertData {
    @Resource
    private TmPcbWorkflowMapper tmPcbWorkflowMapper;

    @Test
    public void InsertTmPcbWorkflow(){
        TmPcbWorkflow tmPcbWorkflow = new TmPcbWorkflow();
        tmPcbWorkflow.setProgarmType("0");
        tmPcbWorkflow.setPageno("00000");
        tmPcbWorkflow.setPageName("菜单");
        tmPcbWorkflow.setUrl("pages/index/index");
        //tmPcbWorkflow.setNextPageNo("00002");
        //tmPcbWorkflow.setPretentPageNo("00000");

        int result = tmPcbWorkflowMapper.insert(tmPcbWorkflow);
        System.out.println(result);
    }
}
